package com.vma.jifu.others;

import com.jfinal.plugin.activerecord.Page;
import com.vma.jifu.bizModel.model.TgArticle;
import com.vma.jifu.bizModel.model.TgVedio;

import java.util.List;

/**
 * Created by chenzui on 2017/6/16.
 */
public interface TgAssistService {
    /**
     * 获取2条最新图文消息,app
     * @return
     */
    public List<TgArticle> getArticles();

    /**
     * 获取2条最新的视频消息,app
     * @return
     */
    public List<TgVedio> getVedioes();

    /**
     * 图文消息分页接口,app
     * @param cPage
     * @param pSize
     * @return
     */
    public Page<TgArticle> getArticleByPage(Integer cPage,Integer pSize);

    /**
     * 视频分页接口,app
     * @param cPage
     * @param pSize
     * @return
     */
    public Page<TgVedio> getVedioByPage(Integer cPage,Integer pSize);


    public TgArticle getArticleById(Integer id);

    public TgVedio getVedioById(Integer id);

}
